package cn.hxth.dubbo.service.mapper;

import cn.hxth.api.model.Product;
import cn.hxth.api.query.ProductQueryObject;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface ProductMapper {
    boolean deleteByPrimaryKey(Long pid);

    boolean insert(Product record);

    Product selectByPrimaryKey(Long pid);

    List<Product> selectAll(ProductQueryObject productQueryObject);

    boolean updateByPrimaryKey(Product record);

    Integer selectCount(ProductQueryObject productQueryObject);

   Long selectBySpecId(Integer sid);
    List<Long> selectPidForCache(ProductQueryObject productQueryObject);

    boolean deleteBySid(Integer integer);

    Integer selectSpecByPId(Long pid);
}